package com.quad.innovators.salesease.model.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户导出视图对象
 *
 * @author haoxr
 * @since 2022/4/11 8:46
 */

@Data
@ColumnWidth(20)
public class SysUserExportDTO {

    @ExcelProperty(value = "用户编码")
    @ExcelIgnore
    private String userCode;

    @ExcelProperty(value = "员工姓名")
    private String username;

    @ExcelProperty(value = "角色")
    private String roleName;

    @ExcelProperty(value = "手机号")
    private String telephone;

    @ExcelProperty(value = "描述")
    private String description;

    @ExcelProperty(value = "创建时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
